<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'input_comment.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/application.css"></c:url>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/css/listdata.css"></c:url>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/css/form.css"></c:url>">
    
    <script type="text/javascript" src="<c:url value="/js/common.js"/>"></script>
  </head>
  
  <body>
    <form action="<c:url value="/comment"/>" method="post">
       <input type="hidden" name="act" value="input_comment"/>
       <input type="hidden" name="bookCode" value="${book.bookCode}"/>
       <input type="hidden" name="orderId" value="${orderId}"/>
       <div class="headTitle">&gt;&gt;新书咨询登记</div>
       <div class="groupline" style="margin-bottom:5px">图书基本信息</div>
       <div>
	       <ul>
	             <li>
	             <img onclick="location.href='<c:url value="/bookMgr?act=showcover&bookcode=${book.bookCode}"/>';"
                       title="点图片查看大图"
                       style="width:50px; height:50px;" 
                       src="<c:url value="/bookMgr?act=showcover&bookcode=${book.bookCode}"/>">
                  </img>
	            </li>
	            <li>
	            <span class="lableFont">书名:</span>
	            ${book.bookName}
	            </li>
	          <li>
	            <span class="lableFont">评论者:</span>
	            <input type="text" class="text" name="custIp" size="20" value="${param['custIp']}"/>
	          </li>
	          <li>
	            <span class="lableFont">标题:</span>
	            <input type="text" class="text" name="title" size="80" value="${param['title']}"/>
	          </li>
	          <li>
	            <span class="lableFont">评分:</span>
	            <select name="mark">
	            <option value="0">==请选择==</option>
	               <option value="0">0</option>
	               <option value="1">1</option>
	               <option value="2">2</option>
	               <option value="3">3</option>
	               <option value="4">4</option>
	               <option value="5">5</option>
	               
                </select>
	          </li>
	          <li>
	            <span class="lableFont" style="vertical-align:middle">评价内容:</span>
	            <textarea name="content" class="text" rows="15" cols="100" value="${param['content']}">请简略填写评论!</textarea>
	          </li>	 
	        </ul> 
          </div>
	      <div class="submitDiv">
	        <input type="submit" value="提交评论"/>
	        <input type="reset" value="取消重写"/>
	      </div>     
    </form>
       <c:if test="${not empty errMsg}">
          <script type="text/javascript">
             alert("${errMsg}");
          </script>
       </c:if>
     
  </body>
</html>
